package com.ldk.config;

import com.ldk.domain.Car;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

import java.net.CacheRequest;

@Configuration
@ComponentScan(value = "com.ldk",
        //includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class})},
        //includeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = {Car.class})},
        includeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM,classes = {Car.class})},
                useDefaultFilters=false)
public class MyConfigCompontScan {

}
